package com.fqy.ticket.business.controller;

import com.fqy.ticket.business.req.DailyTrainTicketQueryReq;
import com.fqy.ticket.business.service.DailyTrainTicketService;
import com.fqy.ticket.common.resp.CommonResp;
import com.fqy.ticket.common.resp.PageResp;
import jakarta.annotation.Resource;
import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/daily-train-ticket")
public class DailyTrainTicketController {
    @Resource
    private DailyTrainTicketService dailyTrainTicketService;

    @GetMapping("query-list")
    public CommonResp<PageResp> queryList(@Valid DailyTrainTicketQueryReq req) {
        return new CommonResp<>(dailyTrainTicketService.queryList(req));
    }

}
